package com.shrcl.engineerprocess.domain.impl;

import com.shrcl.engineerprocess.domain.NotifyReceiver;
import com.shrcl.engineerprocess.domain.proxy.NotifyReceiverProxy;
import edu.fudan.mylang.pf.BaseModelObject;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.DiscriminatorOptions;

@Entity
@DiscriminatorValue("NOTIFYRECEIVER_TYPE")
@DiscriminatorOptions(force = true)
@DiscriminatorColumn(length = 64)
@Table(name = "notifyreceiver")
public abstract class NotifyReceiverImpl extends BaseModelObject implements NotifyReceiver {
  public NotifyReceiverImpl() {
    super();
  }
  
  public NotifyReceiverProxy toProxy() {
    com.shrcl.engineerprocess.domain.proxy.NotifyReceiverProxy proxy = new com.shrcl.engineerprocess.domain.proxy.NotifyReceiverProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
